package com.gxa.meiye.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 优惠卷
 * </p>
 *
 * @author zy
 * @since 2022-07-24
 */
@TableName("t_coupon")
@ApiModel(value = "Coupon对象", description = "优惠卷")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private BigDecimal money;

    @ApiModelProperty("优惠卷类型")
    private String status;

    @ApiModelProperty("优惠卷名称")
    private String title;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    @ApiModelProperty("总量")
    private Integer total;

    @ApiModelProperty("每个人的最多拥有数量")
    private Integer userMax;

    @ApiModelProperty("1.注册发放 2.登录满30天")
    private Integer issuingConditions;

    @ApiModelProperty("剩余数量")
    private Integer existingQuantity;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }
    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
    public Integer getUserMax() {
        return userMax;
    }

    public void setUserMax(Integer userMax) {
        this.userMax = userMax;
    }
    public Integer getIssuingConditions() {
        return issuingConditions;
    }

    public void setIssuingConditions(Integer issuingConditions) {
        this.issuingConditions = issuingConditions;
    }
    public Integer getExistingQuantity() {
        return existingQuantity;
    }

    public void setExistingQuantity(Integer existingQuantity) {
        this.existingQuantity = existingQuantity;
    }

    @Override
    public String toString() {
        return "Coupon{" +
            "id=" + id +
            ", money=" + money +
            ", status=" + status +
            ", title=" + title +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", total=" + total +
            ", userMax=" + userMax +
            ", issuingConditions=" + issuingConditions +
            ", existingQuantity=" + existingQuantity +
        "}";
    }
}
